package com.situ.crm.mapper;

import com.situ.crm.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);
    
    int deleteAll(String[] idArray);

	List<User> pageList(User user);

	User login(@Param("name") String name, @Param("password") String password);

	/**
	 * 查询角色是销售的所有User用户
	 * @return
	 */
	List<User> selectXiaoShouUser();

}